package cn.tedu.yushouge.pet.adopt.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@Accessors(chain = true)
public class PetPicUpdateInfoParam {

    @NotNull(message = "修改宠物图片失败，必须提交宠物Id！")
    @ApiModelProperty(value = "宠物ID", required = true)
    private Long petId;
    @NotNull(message = "修改宠物图片失败，必须提交宠物图片url！")
    @ApiModelProperty(value = "宠物图片url", required = true)
    private String picUrl;
    @NotNull(message = "修改宠物图片失败，必须提交宠物图片是否为封面！")
    @Range(max = 1, message = "修改宠物图片失败，宠物状态值必须1~0之间！")
    @ApiModelProperty(value = "是否为封面，1为封面，0为不是封面", required = true)
    private Integer isCover;

}
